
SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[Callbacks](
	[ID] [uniqueidentifier] NOT NULL,
	[CreatedTime] [datetime] NULL,
	[CallingPhoneNumber] [nvarchar](50) NULL,
	[CallbackPhoneNumber] [nvarchar](50) NULL,
	[SysStatus] [nvarchar](50) NULL,
	[Status] [nvarchar](50) NULL,
	[Result] [nvarchar](50) NULL,
	[AgentID] [nvarchar](50) NULL,
	[Station] [nvarchar](50) NULL,
	[MessageUrl] [nvarchar](500) NULL,
	[Tries] [int] NULL,
	[TelephonyPort] [nvarchar](50) NULL,
	[LastUpdateTime] [datetime] NULL,
	[Note] [ntext] NULL,
 CONSTRAINT [PK_Callbacks] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

GO

--------------------------
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[CallbackDetails](
	[ID] [uniqueidentifier] NOT NULL,
	[CallbackID] [uniqueidentifier] NULL,
	[CreatedTime] [datetime] NULL,
	[SysStatus] [nvarchar](50) NULL,
	[Status] [nvarchar](50) NULL,
	[Result] [nvarchar](50) NULL,
	[AgentID] [nvarchar](50) NULL,
	[Station] [nvarchar](50) NULL,
	[TelephonyPort] [nvarchar](50) NULL,
	[Note] [ntext] NULL,
	[LastUpdateTime] [datetime] NULL,
 CONSTRAINT [PK_CallbackDetails] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

GO

----------------------------------

SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[CallbackSettings](
	[ID] [uniqueidentifier] NOT NULL,
	[Name] [nvarchar](500) NULL,
	[Value] [nvarchar](500) NULL,
	[DefaultValue] [nvarchar](500) NULL,
	[Description] [nvarchar](500) NULL,
	[Section] [nvarchar](50) NULL,
 CONSTRAINT [PK_Settings] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

---------------------
